package com.wsk.service.Impl;

import com.wsk.bean.User;
import com.wsk.dao.LoginDAO;
import com.wsk.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;

/**
 * Created by Maibenben on 2017/1/19.
 */
@Service("loginService")
@Repository
@Transactional
public class LoginServiceImpl implements LoginService{
@Autowired
private LoginDAO userDAO;
@Override
public boolean saveUsers(Object users){

        userDAO.save(users);
return true;
        }

@Override
public List<User> getAllUsers(){
        return null;
        }
        }
